package com.dengyiming.search.service;

import com.dengyiming.common.dto.PageDTO;
import com.dengyiming.search.pojo.ItemDoc;
import com.dengyiming.search.pojo.SearchDTO;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface SearchService {

    PageDTO<ItemDoc> searchList(SearchDTO searchDTO) throws IOException;

    Map<String, List<String>> searchFilters(SearchDTO searchDTO);

    List<String> searchSuggestion(String key);

    void deleteById(Long id);

    void insertById(Long id);
}
